package cn.formaggie.entity.model.roleandpermission;

import cn.formaggie.entity.model.roleandpermission.Role;

import java.io.Serializable;
import java.util.Date;

public class Worker implements Serializable{

    private Integer id; //主键
    private String workerId;//工人编号
    private String password;
    private String name;//工人姓名
    private String sex;//工人性别
    private Date inDate;//工人入职日期
    private String phone;//工人联系电话
    private Role role;

    public Worker() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getWorkerId() {
        return workerId;
    }

    public void setWorkerId(String workerId) {
        this.workerId = workerId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getInDate() {
        return inDate;
    }

    public void setInDate(Date inDate) {
        this.inDate = inDate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "Worker{" +
                "id=" + id +
                ", workerId='" + workerId + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", inDate=" + inDate +
                ", phone='" + phone + '\'' +
                ", role=" + role +
                '}';
    }
}
